﻿
namespace IntellectShop.Common
{
	//валюты
	public enum Currency
	{
		RUB = 643, //старый был 810
		USD = 840,
		EUR = 978,
		GBP = 826
	}

	public static class CurrencyLocalized
	{
		public static string ToLocalizedString(this Currency currency)
		{
			switch (currency)
			{
				case Currency.RUB:
					return Resources.Resources.RUB;
				case Currency.USD:
					return Resources.Resources.USD;
				case Currency.EUR:
					return Resources.Resources.EUR;
				case Currency.GBP:
					return Resources.Resources.GBP;
				default:
					return currency.ToString();
			}
		}
	}
}
